/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hcht.xrlh.sx.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.google.common.collect.Lists;
import com.hcht.xrlh.test.entity.TestDataChild;
import com.hcht.xrlh.zfdxk.entity.DrZfdxk;
import com.hcht.xrlh.zfdxktitle.entity.DrZfdxkTitle;
import com.thinkgem.jeesite.modules.sys.entity.Office;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 双随机事项管理Entity
 * @author lrz
 * @version 2016-12-19
 */
public class DrSx extends DataEntity<DrSx> {
	
	private static final long serialVersionUID = 1L;
	private String sxZdy;		// 是否自定义事项
	private String sxFdsx;		// 法定事项
	private String sxMc;		// 名称
	private Office officeZd;		// 制定部门
	private Office officeGl;		// 管理部门
	private String sxZy;		// 所需专业
	private String sxBz;		// 备注
	private String sxFlag;		// 状态标志
	
	private String pIds="";		//所有上级部门
	private String uFlag="0";		//是否显示下级部门制定的事项
	
	private Office officeZdQuery;		// 制定部门(查询用)
	
	public Office getOfficeZdQuery() {
		return officeZdQuery;
	}

	public void setOfficeZdQuery(Office officeZdQuery) {
		this.officeZdQuery = officeZdQuery;
	}

	public String getuFlag() {
		return uFlag;
	}

	public void setuFlag(String uFlag) {
		this.uFlag = uFlag;
	}

	public String getpIds() {
		return pIds;
	}

	public void setpIds(String pIds) {
		this.pIds = pIds;
	}

	private List<DrZfdxkTitle> drZfdxkTitleList = Lists.newArrayList();	//执法对象库表头子表
	private List<DrZfdxk> drZfdxkList = Lists.newArrayList();	//执法对象库子表
	
	public List<DrZfdxk> getDrZfdxkList() {
		return drZfdxkList;
	}

	public void setDrZfdxkList(List<DrZfdxk> drZfdxkList) {
		this.drZfdxkList = drZfdxkList;
	}

	public List<DrZfdxkTitle> getDrZfdxkTitleList() {
		return drZfdxkTitleList;
	}

	public void setDrZfdxkTitleList(List<DrZfdxkTitle> drZfdxkTitleList) {
		this.drZfdxkTitleList = drZfdxkTitleList;
	}

	public DrSx() {
		super();
	}

	public DrSx(String id){
		super(id);
	}

	public String getSxZdy() {
		return sxZdy;
	}

	public void setSxZdy(String sxZdy) {
		this.sxZdy = sxZdy;
	}
	
	@Length(min=0, max=10, message="法定事项长度必须介于 0 和 10 之间")
	public String getSxFdsx() {
		return sxFdsx;
	}

	public void setSxFdsx(String sxFdsx) {
		this.sxFdsx = sxFdsx;
	}
	
	@Length(min=0, max=255, message="名称长度必须介于 0 和 255 之间")
	public String getSxMc() {
		return sxMc;
	}

	public void setSxMc(String sxMc) {
		this.sxMc = sxMc;
	}
	
	
	public Office getOfficeZd() {
		return officeZd;
	}

	public void setOfficeZd(Office officeZd) {
		this.officeZd = officeZd;
	}

	public Office getOfficeGl() {
		return officeGl;
	}

	public void setOfficeGl(Office officeGl) {
		this.officeGl = officeGl;
	}

	@Length(min=0, max=255, message="所需专业长度必须介于 0 和 255 之间")
	public String getSxZy() {
		return sxZy;
	}

	public void setSxZy(String sxZy) {
		this.sxZy = sxZy;
	}
	
	@Length(min=0, max=255, message="备注长度必须介于 0 和 255 之间")
	public String getSxBz() {
		return sxBz;
	}

	public void setSxBz(String sxBz) {
		this.sxBz = sxBz;
	}
	
	@Length(min=0, max=2, message="状态标志长度必须介于 0 和 2 之间")
	public String getSxFlag() {
		return sxFlag;
	}

	public void setSxFlag(String sxFlag) {
		this.sxFlag = sxFlag;
	}
	
}